<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@ include file="/common/common_style_script.jsp" %>
        <%@ include file="/common/tree_style_script.jsp" %>
        <title>添加新员工</title>
    </head>
    <body>
        <fieldset>
        	<legend>新员工信息</legend>
            <form action="<c:url value = "/sys/employee/save.action"  />" method="post" class="cf">
                <div>
                    <label>员工号</label>
                    <input name="employeeCode"/>
                </div>
                <div>
                    <label>员工姓名</label>
                    <input name="employeeName"/>
                </div>
                <div>
                    <label>员工部门</label>
                    <select name="departmentId">
                    	<c:forEach items="${requestScope.deptList}" var="dept">
                    	<option value="${dept.deptId}"><c:out value="${dept.deptName}" /></option>
                    	</c:forEach>
                    </select>
                </div>
                <div>
                    <label>员工账号</label>
                    <input name="accountName"/>
                </div>
                <div>
                    <label>员工email</label>
                    <input name="email"/>
                </div>
                <div>
                    <label>员工职位</label>
                    <input name="job"/>
                </div>
                <div class="chk">
                    <label>员工权限</label>
                    	<c:forEach items="${requestScope.roleList}" var="role">
	                    <input name="roleIds" value= "${role.roleId}" id="<c:out value="role${role.roleId}" />" type="checkbox" /><label for="<c:out value="role${role.roleId}" />"><c:out value="${role.roleName}" /></label>
                    	</c:forEach>
                </div>
                <div class="btn">
                    <input type="submit" value="创建" />
                </div>
            </form>
        </fieldset>
    </body>
</html>